<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateSystemNoticeTable extends Migration
{
    /**
     * Run the migrations.
     *通知模板表
     * @return void
     */
    public function up()
    {
        Schema::create('system_notice', function (Blueprint $table) {
            $table->id()->comment('通知模板表');
            $table->string('push_admin')->index()->comment('通知管理员id');
            $table->string('title')->comment('通知标题');
            $table->string('type')->comment('通知类型');
            $table->string('icon')->comment('图标');
            $table->string('url')->comment('链接');
            $table->string('table_title')->comment('通知数据');
            $table->string('template')->comment('通知模板');
            $table->tinyInteger('status')->comment('状态:0不通知 知(1通默认)');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('system_notice');
    }
}
